<template>
  <div class="title-box">
    <van-icon name="arrow-left" class="returnIcon" />
    <slot></slot>
  </div>
</template>

<script>
export default {
  name: "index"
};
</script>

<style scoped lang="scss">
.title-box {
  height: 80px;
  width: 100%;
  background: #1E0B1F;
  color: #fff;
  line-height: 110px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;

  .returnIcon {
    position: absolute;
    top: 45px;
    left: 2px;
  }
}
</style>